.class public Lcom/instagram/android/feed/a/a/t;
.super Lcom/instagram/e/b/d;
.source "LegacyVideoPlayerFragment.java"

# interfaces
.implements Lcom/instagram/android/feed/a/b/ad;


# static fields
.field private static final Z:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class",
            "<*>;"
        }
    .end annotation
.end field


# instance fields
.field private aa:Lcom/instagram/android/feed/a/a/l;

.field private ab:Lcom/instagram/android/feed/a/b/z;

.field private ac:Lcom/instagram/j/l;

.field private ad:I

.field private ae:Lcom/instagram/android/feed/a/b/ae;

.field private af:Z

.field private ag:Landroid/view/animation/Animation;

.field private ah:Landroid/view/animation/Animation;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 36
    const-class v0, Lcom/instagram/android/feed/a/a/t;

    sput-object v0, Lcom/instagram/android/feed/a/a/t;->Z:Ljava/lang/Class;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/instagram/e/b/d;-><init>()V

    .line 50
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/feed/a/a/t;->af:Z

    return-void
.end method

.method private Y()V
    .locals 2

    .prologue
    .line 150
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ac:Lcom/instagram/j/l;

    if-eqz v0, :cond_0

    .line 151
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->e()V

    .line 153
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->v()Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/t;->ah:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 155
    :cond_0
    return-void
.end method

.method private Z()V
    .locals 2

    .prologue
    .line 201
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/facebook/ar;->legacy_video_fade_in:I

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ag:Landroid/view/animation/Animation;

    .line 202
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ag:Landroid/view/animation/Animation;

    new-instance v1, Landroid/view/animation/AccelerateDecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateDecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 204
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/facebook/ar;->legacy_video_fade_out:I

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ah:Landroid/view/animation/Animation;

    .line 205
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ah:Landroid/view/animation/Animation;

    new-instance v1, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v1}, Landroid/view/animation/LinearInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 206
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ah:Landroid/view/animation/Animation;

    new-instance v1, Lcom/instagram/android/feed/a/a/w;

    invoke-direct {v1, p0}, Lcom/instagram/android/feed/a/a/w;-><init>(Lcom/instagram/android/feed/a/a/t;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 212
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/feed/a/a/t;)Lcom/instagram/android/feed/a/a/l;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/feed/a/a/t;)V
    .locals 0
    .parameter

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a/t;->Y()V

    return-void
.end method


# virtual methods
.method public X()V
    .locals 1

    .prologue
    .line 192
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->d()V

    .line 193
    return-void
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 78
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ac:Lcom/instagram/j/l;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    sget v0, Lcom/facebook/ax;->dialog_video_legacy:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    goto :goto_0
.end method

.method public a(Landroid/graphics/Bitmap;Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 198
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 57
    invoke-super {p0, p1}, Lcom/instagram/e/b/d;->a(Landroid/os/Bundle;)V

    .line 58
    const/4 v0, 0x2

    sget v1, Lcom/facebook/bb;->IgDialogLegacyVideo:I

    invoke-virtual {p0, v0, v1}, Lcom/instagram/android/feed/a/a/t;->a(II)V

    .line 60
    invoke-static {}, Lcom/instagram/j/u;->a()Lcom/instagram/j/u;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "LegacyVideoPlayerFragment.MEDIA_ID"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/j/u;->b(Ljava/lang/String;)Lcom/instagram/j/l;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ac:Lcom/instagram/j/l;

    .line 62
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ac:Lcom/instagram/j/l;

    if-nez v0, :cond_0

    .line 66
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->a()V

    .line 74
    :goto_0
    return-void

    .line 68
    :cond_0
    new-instance v0, Lcom/instagram/android/feed/a/a/l;

    invoke-direct {v0, p0, p0}, Lcom/instagram/android/feed/a/a/l;-><init>(Landroid/support/v4/app/Fragment;Lcom/instagram/b/d;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    .line 69
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "LegacyVideoPlayerFragement.POSITION"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/instagram/android/feed/a/a/t;->ad:I

    .line 70
    new-instance v0, Lcom/instagram/android/feed/a/b/z;

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p0}, Lcom/instagram/android/feed/a/b/z;-><init>(Landroid/content/Context;Lcom/instagram/android/feed/a/b/ad;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ab:Lcom/instagram/android/feed/a/b/z;

    .line 72
    invoke-direct {p0}, Lcom/instagram/android/feed/a/a/t;->Z()V

    goto :goto_0
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 6
    .parameter
    .parameter

    .prologue
    .line 85
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/d;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 87
    if-eqz p1, :cond_0

    .line 88
    new-instance v0, Lcom/instagram/android/feed/a/a/u;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/a/a/u;-><init>(Lcom/instagram/android/feed/a/a/t;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 99
    sget v0, Lcom/facebook/aw;->media_group:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 100
    invoke-static {v0}, Lcom/instagram/android/feed/a/b/z;->a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/ae;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/android/feed/a/a/t;->ae:Lcom/instagram/android/feed/a/b/ae;

    .line 101
    iget-object v1, p0, Lcom/instagram/android/feed/a/a/t;->ae:Lcom/instagram/android/feed/a/b/ae;

    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 103
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->ab:Lcom/instagram/android/feed/a/b/z;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/t;->ae:Lcom/instagram/android/feed/a/b/ae;

    iget-object v2, p0, Lcom/instagram/android/feed/a/a/t;->ac:Lcom/instagram/j/l;

    iget v3, p0, Lcom/instagram/android/feed/a/a/t;->ad:I

    const/4 v4, 0x0

    sget-object v5, Lcom/instagram/creation/video/ui/g;->c:Lcom/instagram/creation/video/ui/g;

    invoke-virtual/range {v0 .. v5}, Lcom/instagram/android/feed/a/b/z;->a(Lcom/instagram/android/feed/a/b/ae;Lcom/instagram/j/l;IZLcom/instagram/creation/video/ui/g;)V

    .line 113
    sget v0, Lcom/facebook/aw;->animatable_background:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/t;->ag:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 115
    :cond_0
    return-void
.end method

.method public a(Lcom/instagram/j/l;ILcom/instagram/android/feed/a/b/ae;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 187
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0, p2, p1, p3}, Lcom/instagram/android/feed/a/a/l;->a(ILcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;)V

    .line 188
    return-void
.end method

.method public b(Lcom/instagram/j/l;ILcom/instagram/android/feed/a/b/ae;)V
    .locals 8
    .parameter
    .parameter
    .parameter

    .prologue
    .line 159
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->m()Landroid/support/v4/app/r;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/r;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v2

    .line 161
    invoke-virtual {p1}, Lcom/instagram/j/l;->ag()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 162
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    sget-object v2, Lcom/instagram/j/o;->a:Lcom/instagram/j/o;

    sget-object v3, Lcom/instagram/android/model/o;->b:Lcom/instagram/android/model/o;

    invoke-static {v0, v1, p1, v2, v3}, Lcom/instagram/android/feed/e/h;->a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/l;Lcom/instagram/j/o;Lcom/instagram/android/model/o;)V

    .line 182
    :goto_0
    invoke-virtual {p3}, Lcom/instagram/android/feed/a/b/ae;->d()Lcom/instagram/creation/video/ui/MediaActionsView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/MediaActionsView;->a()V

    .line 183
    return-void

    .line 170
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    sget-object v4, Lcom/instagram/j/o;->a:Lcom/instagram/j/o;

    sget-object v5, Lcom/instagram/android/model/o;->b:Lcom/instagram/android/model/o;

    move-object v6, v2

    check-cast v6, Lcom/instagram/android/fragment/ak;

    move-object v7, v2

    check-cast v7, Lcom/instagram/b/d;

    move-object v2, p1

    move v3, p2

    invoke-static/range {v0 .. v7}, Lcom/instagram/android/feed/e/h;->a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/l;ILcom/instagram/j/o;Lcom/instagram/android/model/o;Lcom/instagram/android/fragment/ak;Lcom/instagram/b/d;)V

    goto :goto_0
.end method

.method public c(Landroid/os/Bundle;)Landroid/app/Dialog;
    .locals 4
    .parameter

    .prologue
    const/4 v3, -0x1

    .line 119
    new-instance v0, Lcom/instagram/android/feed/a/a/v;

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/feed/a/a/t;->c()I

    move-result v2

    invoke-direct {v0, p0, v1, v2}, Lcom/instagram/android/feed/a/a/v;-><init>(Lcom/instagram/android/feed/a/a/t;Landroid/content/Context;I)V

    .line 125
    invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v3, v3}, Landroid/view/Window;->setLayout(II)V

    .line 127
    return-object v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 216
    const-string v0, "legacy_video_player"

    return-object v0
.end method

.method public w()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 132
    invoke-super {p0}, Lcom/instagram/e/b/d;->w()V

    .line 134
    iget-boolean v0, p0, Lcom/instagram/android/feed/a/a/t;->af:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    if-eqz v0, :cond_0

    .line 135
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    iget-object v1, p0, Lcom/instagram/android/feed/a/a/t;->ac:Lcom/instagram/j/l;

    iget-object v2, p0, Lcom/instagram/android/feed/a/a/t;->ae:Lcom/instagram/android/feed/a/b/ae;

    iget v3, p0, Lcom/instagram/android/feed/a/a/t;->ad:I

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/instagram/android/feed/a/a/l;->a(Lcom/instagram/j/l;Lcom/instagram/android/feed/a/b/ae;IZ)V

    .line 136
    iput-boolean v4, p0, Lcom/instagram/android/feed/a/a/t;->af:Z

    .line 138
    :cond_0
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 142
    invoke-super {p0}, Lcom/instagram/e/b/d;->x()V

    .line 144
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    if-eqz v0, :cond_0

    .line 145
    iget-object v0, p0, Lcom/instagram/android/feed/a/a/t;->aa:Lcom/instagram/android/feed/a/a/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/a/a/l;->f()V

    .line 147
    :cond_0
    return-void
.end method
